Skip to content

refactor: organize src/state into subdirs/tests and eliminate GTA6 #[path] flattening (desloppify wave 5E-1) - #115

Merged
leonidarider merged 1 commit into
mainfrom
agent/desloppify-w5e1
Dec 3, 2026
Merged

leonidarider merged 1 commit into
mainfrom
agent/desloppify-w5e1

Conversation

@leonidarider

Copy link
Copy Markdown
Contributor

Summary

Resolves 4 desloppify review items (wave 5E-1; clears Convention drift to 0 open):

  • convention_outlier::gta6_flat_path_style_island & package_organization::gta6_or_io_path_flattening: Replaced all 382 #[path = "..."] attributes across crates/io/or-io/src/gta6/ (346 -> 0), crates/domain/or-world-gta6/src/ (33 -> 0), and crates/tools/or-cli/src/gta6/ (3 -> 0) with standard Rust mod.rs subdirectories while preserving all public API paths.
  • convention_outlier::src_flat_test_interleaving & package_organization::src_state_mega_flat_overload: Relocated all flat #[cfg(test)] files plus copy_cut_and_paste/ and the_files_view_in_the_centre/ into src/state/tests/, moved rpf9_tree_row_kind.rs into src/state/files_view/, and grouped all gta6_* and rpf* production modules into src/state/gta6/ (10 subdirs) and src/state/rpf/ (eliminating all 111 #[path] attributes in src/state/ and reducing top-level entries from 412 -> 100).
  • Updated .config/nextest.toml, crates/tools/xtask/src/slow_tier.rs, path-based source-scan tests, and doc citations; 0 mixed mod.rs/foo.rs sibling directories remain anywhere in the repo.

Verification

  • just ready: 3,526 tests passed in 315 binaries, 0 clippy regressions (only the 4 pre-existing origin/main failures).
  • repo_tests::doc_* (doc_citations, doc_counts, doc_comments): all passed.
  • just self-check: 140/140 passed.
  • Pre-commit hook (fmt, encoding, provenance): clean.

…path] flattening (desloppify wave 5E-1)

- Replace all 382 #[path = "..."] directives in or-io/src/gta6/ (346 -> 0,
  including script/, script/passes/, headerless/, map/, ttpf/, save/, audio/,
  water/), or-world-gta6/src/ (33 -> 0: edit/, index/, stream/, day/), and
  or-cli/src/gta6/ (3 -> 0) with standard Rust mod.rs subdirectories while
  preserving all public API paths.
- Relocate all 145 flat #[cfg(test)] files plus copy_cut_and_paste/ and
  the_files_view_in_the_centre/ out of src/state/ into src/state/tests/ wired
  from one #[cfg(test)] pub(crate) mod tests;.
- Move src/state/rpf9_tree_row_kind.rs into src/state/files_view/ (removing the
  upward #[path]) and group all gta6_* and rpf* production modules into
  src/state/gta6/ (10 subdirs) and src/state/rpf/, eliminating all 111 #[path]
  attributes in src/state/ and shrinking top-level entries from 412 -> 100.
- Update .config/nextest.toml, xtask/src/slow_tier.rs, path-based test checks,
  and doc citations (0 mixed mod.rs/file+dir sibling dirs across the repo).
@leonidarider
leonidarider merged commit 618ea04 into main Dec 3, 2026
2 of 3 checks passed
@leonidarider
leonidarider deleted the agent/desloppify-w5e1 branch December 3, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant